# coding: utf-8
from sqlalchemy import Column, DateTime, Integer, String
# from flask_sqlalchemy import SQLAlchemy
from application import db


# db = SQLAlchemy()

class ArticleCategory(db.Model):
    __tablename__ = 'article_category'

    article_category_id = db.Column(db.String(50), primary_key=True)
    article_category_pid = db.Column(db.String(50))
    user_id = db.Column(db.String(50))
    category_id = db.Column(db.String(50))
    article_category_model = db.Column(db.String(50))
    title = db.Column(db.String(50))
    content = db.Column(db.String(500))
    Level = db.Column(db.Integer)
    summary = db.Column(db.String(500))
    style = db.Column(db.String(50))
    type = db.Column(db.String(1))
    icon = db.Column(db.String(200))
    count = db.Column(db.Integer)
    order_number = db.Column(db.Integer)
    flag = db.Column(db.String(50))
    meta_keywords = db.Column(db.String(500))
    meta_description = db.Column(db.String(500))
    remarks = db.Column(db.String(500))
    delflage = db.Column(db.Integer)
    create_time = db.Column(db.DateTime)
    create_user = db.Column(db.String(200))
    update_time = db.Column(db.DateTime)
    update_user = db.Column(db.String(200))
